<form class="layui-form layui-box" action="__SELF__" data-auto="true" method="post" data-confirm="确定要取消编辑吗？">

    <div class="layui-form-item">
        <label class="layui-form-label">权限名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" value='{$info.title|default=""}' required="required" title="请输入权限名称" placeholder="请输入权限名称" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">权限描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入权限描述" required="required" title="请输入权限描述" class="layui-textarea" name="desc">{$info.desc|default=""}</textarea>
        </div>
    </div>

    <if isset($info['id'])><input type='hidden' value='{$info.id}' name='id'/></if>
</form>
